<?php
/* @var $this LocationController */
/* @var $dataProvider CActiveDataProvider */
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0"	class="texteSimple">
	<tr>
		<td><hr noshade width="100%" color="#CCCCCC" size="1"></td>
	</tr>
	<tr>
		<td>			
			<?php //if(!empty($params['displayArea']->favorites))
				$this->renderPartial('_favorite',array('model'=>$model,'params'=>$params,)); ?>
		</td>
	</tr>
	<tr>
		<td><hr noshade width="100%" color="#CCCCCC" size="1"></td>
	</tr>
	<tr>
		<td><?php $this->renderPartial('_search',array('model'=>$model,'params'=>$params,));?></td>
	</tr>	
	<tr>
		<td align="center"><?php if( count($dataProvider->getData())>1)									
									echo CHtml::encode(count($dataProvider->getData()))." ". Yii::t('main', 'x-results');
								else if(count($dataProvider->getData())==1)
									echo Yii::t('main', '1-result');
								else
									echo  Yii::t('main', 'no-result');
		?> </td>
	</tr>
	<tr>
		<td><hr noshade width="100%" color="#CCCCCC" size="1"> 
		<span class="titresPremium">			
		 <?php 
              if(!empty($params['displayArea']))
              	echo Yii::t('main', 'your-area-location-selection')." ".CHtml::encode($params['displayArea']->name);
              else echo Yii::t('main', 'your-france-location-selection');
         ?>					
		</span>
		</td>
	</tr>
	<tr><td>
	<?php $this->widget('zii.widgets.CListView', array('dataProvider'=>$dataProvider,
		'itemView'=>'_view',
		'template'=>"{items}\n{pager}",
		'enablePagination'=>true)); ?>
	</td></tr>
</table>